#include <stdio.h>
unsigned long Factorial (int n);
int main ()
{
	int i,n;
	printf ("请输入一个整数n:");
	scanf("%d",&n);
	unsigned long f;
	unsigned long s=0;
	double m=0;
	for (i=1;i<=n;i++)
	{
		f=Factorial(i);
		s+=f*f;
		m=1(f*f);
	}
	printf("s=%u\n",s);
	printf("m=%lf\n",m)
	return 0;
 } 
 unsigned long Factorial (int n)
 {
 	unsigned long t=1;
 	int i;
 	for(i=1;i<=n;i++)
 	t*=i;
 	return t;
 }
